<?php
require("../include/connectdb.php");
session_start();
if($_SESSION['login']==false){
	$_SESSION['error']="Cảnh báo: bạn phải đăng nhập trước khi vào phần quản trị trang web";
	header('location:index.php');
}
?>

<title>Admin - C2Group</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<style media="all" type="text/css">@import "css/all.css";</style>
<script type="text/javascript" charset="utf-8" src="../js/utility.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/validate.js"></script>

<div id="main">
	<div id="header">
		<a href="index.html" class="logo"><img src="img/logo.gif" width="101" height="29" alt="" /></a>
	</div>
	<div id="middle">
		<div id="left-column">
			<h3>Mục quản lý</h3>
			<ul class="nav">
				<li><a href="main.php?page=user">Tài khoản</a></li>
				<li><a href="main.php?page=lpro">Sản phẩm</a></li>
				<li><a href="main.php?page=lart&type=t2">Tin tức</a></li>
				<li><a href="main.php?page=lart&type=w">Web</a></li>
				<li><a href="main.php?page=lart&type=pm">Phần mềm</a></li>
				<li><a href="main.php?page=lart&type=dm">Domain</a></li>
				<li><a href="main.php?page=lart&type=dv">Dịch vụ</a></li>
				<li><a href="main.php?page=lart&type=tv">Tư vấn</a></li>
				<li class="last"><a href="main.php?page=lcon">Liên hệ</a></li>
			</ul>
		</div>
		<div id="center-column">
			<?php require('include/content.php'); ?>
		</div>
		<div id="right-column">
			<strong class="h">INFO</strong>
			<div class="box">
				Welcome <br/><br />
				<span style='color:blue;'><?php echo strtoupper($_SESSION['loginUser']); ?></span> <br/><br/>
				<a style="text-decoration:underline;color:red;font-size:13px;" href='include/loginProc.php?act=logout'>Logout!</a>
			</div>
	  </div>
	</div>
	<div id="footer"></div>
</div>

